package com.zt.ztyh.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.TimeZoneSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 *
 * @TableName ztyh_loan
 */
@TableName(value ="ztyh_loan")
@Data
public class Loan implements Serializable {
    /**
     * 贷款主键
     */
    @TableField(value = "lid")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long lid;

    /**
     * 贷款类型
     */
    @TableField(value = "lname")
    private String lname;

    /**
     * 贷款利率
     */
    @TableField(value = "rate")
    private Double rate;

    /**
     * 最高额度
     */
    @TableField(value = "loanlimit")
    private BigDecimal loanlimit;

    /**
     * 贷款期限
     */
    @TableField(value = "repaymentdate")
    private String repaymentdate;

    /**
     * 状态
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime")
    private Date updatetime;

    /**
     * 冗余
     */
    @TableField(value = "remark")
    private String remark;
    /**
     * 最高额度
     */
    @TableField(value = "remark1")
    private String remark1;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
